<script type="text/javascript">
	function addText(text_area_id){
		try {
			var input_obj = '<input id="file" name="file[]" size="30" type="file" maxlength="30"/>'
			var str = $j("#hidden_div p:first-child").clone();
			str.prepend(input_obj); 
			str.appendTo($j('#'+text_area_id));
		}catch(E){alert(E.description);}
	}
</script>

<p><%=_('add_attachment')%></p>
<input id="file" name="file[]" size="30" type="file" maxlength="30"/>
<a href = "#" onclick="addText('<%=text_area_id%>_attachment');return false;"><%= _('add') %></a>&nbsp;
<div id=<%=text_area_id%>_attachment></div>

<div id="hidden_div" style="display:none;">
	<p><a href="#" class="rmv" onclick="$j(this).parent().remove();return false;">&nbsp;<%= s_('remove') %></a></p>
</div>
